//
//  YCView.m
//  货运代码
//
//  Created by 刘胤辰 on 16/5/5.
//  Copyright © 2016年 温泉. All rights reserved.
//

#import "YCView.h"

@implementation YCView

+(instancetype)initWithFrame:(CGRect)frame backGroudColor:(UIColor *)backGroudColor{
    
    YCView *YC=[[YCView alloc]initWithFrame:frame];
    YC.backgroundColor=backGroudColor;
    
    return YC;
}

+(instancetype)initWithFrame:(CGRect)frame RGBbackGroudColor:(CGFloat)R G:(CGFloat)G B:(CGFloat)B Alpha:(CGFloat)alpha{
    
    YCView *YC=[[YCView alloc]initWithFrame:frame];
    
    YC.backgroundColor=[[UIColor alloc]initWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:alpha];
    
    return YC;
}

+(instancetype)initWithFrame:(CGRect)frame
                  WhiteColor:(CGFloat)whiteColor
                       Alpha:(CGFloat)alpha{
    YCView *YC=[[YCView alloc]initWithFrame:frame];
    
    YC.backgroundColor=[[UIColor alloc]initWithWhite:whiteColor/255.0 alpha:alpha];
    
    return YC;
}

@end
